package com.nc.delivery_project.client.request;

import com.google.web.bindery.requestfactory.shared.Request;
import com.google.web.bindery.requestfactory.shared.RequestContext;
import com.google.web.bindery.requestfactory.shared.Service;
import com.nc.delivery_project.server.service.ScheduleService;
import com.nc.delivery_project.shared.proxy.ScheduleProxy;
import com.nc.delivery_project.shared.servicelocator.ScheduleServiceLocator;

import java.util.List;

/**
 * Created by DRAGON on 10.01.2015.
 */
@Service(value = ScheduleService.class, locator = ScheduleServiceLocator.class)
public interface ScheduleRequest extends RequestContext{

    Request<Integer> create(ScheduleProxy schedule);

    Request<List<ScheduleProxy>> read();

    Request<ScheduleProxy> read(int scheduleId);

    Request<Void> update(ScheduleProxy schedule);

    Request<Void> delete(int scheduleId);
}
